

# 默认目标
all: proto 

# 编译 Protobuf 文件
proto: 
	protoc --proto_path=protocol --go_out=protocol protocol/*.proto

build:
	go build -o bin/server cmd/server/main.go
	go build -o bin/client cmd/client/main.go 

runserver:
	go run cmd/server/main.go

runclient:
	go run cmd/client/main.go

gotest:
	go test test/*_test.go


# 清理生成的文件
clean:
	rm -rf $(PB_DIR) main
